﻿ $url = "???"
 $assemblyPath = "C:\Windows\assembly\GAC_MSIL\TFSCustomConnector\1.0.0.0__e3b08e125969eb14\TFSCustomConnector.dll"
 $lobSystem = "TFSWITCustomConnector"
 
 Write-Host "Adding assembly to LOBSystem"
 $serviceContext = Get-SPServiceContext $url
 $lobSystem = Get-SPBusinessDataCatalogMetadataObject -ServiceContext $serviceContext -BdcObjectType lobsystem -Name $lobSystem
 Import-SPBusinessDataCatalogDotNetAssembly -LobSystem $lobSystem -Path $assemblyPath
Write-Host "Finished!!!"
